package com.huawei.appmarket.support.launcher;

import android.content.Context;
import android.content.Intent;
import androidx.annotation.NonNull;
import com.huawei.appgallery.foundation.launcher.api.AbsLaunchInterceptor;

public class HwIDDefaultInterceptor extends AbsLaunchInterceptor {
    public boolean isInterceptor(@NonNull String str) {
        return "com.huawei.hwid".equals(str);
    }

    public Intent getIntentByPackage(Context context, String str) {
        Intent intent = new Intent();
        intent.setAction("com.huawei.hwid.ACTION_MAIN_SETTINGS");
        intent.setPackage("com.huawei.hwid");
        intent.putExtra("channel", 4000000);
        intent.putExtra("showLogout", true);
        return intent;
    }
}
